/**************************************************************************/
// FIXME: Why is this code doing its own byte order conversion?
-static unsigned int byte_order(void)
+static unsigned int byte_order()
{
unsigned long test = BYTEORDER_TEST;
unsigned char* ptr;
return WP;
}
-static void wpr_read(void)
+static void wpr_read()
{
struct wprdata wprdata;
struct rtehdr* rtehdr;
}
}
-static void trl_read(void)
+static void trl_read()
{
struct trldata trldata;
struct trkhdr* trkhdr;
rte->wptnum ++;
}
-static void wpr_route_trl(const route_head* RT)
+static void wpr_route_trl(const route_head*)
{
/* should we do some final sanity checks? */
}
-static void wpr_write(void)
+static void wpr_write()
{
int i;
trkhdr->next = trkhdr->totalpt;
}
-static void trl_track_tlr(const route_head* TL)
+static void trl_track_tlr(const route_head*)
{
struct trkhdr* trkhdr;
int trk_idx;
TRL.loghdr.num = -1;
}
-static void trl_write(void)
+static void trl_write()
{
struct trkhdr* trkhdr;
void* buf;
fin = gbfopen(fname, "rb", MYNAME);
}
-static void alan_rd_deinit(void)
+static void alan_rd_deinit()
{
gbfclose(fin);
fin = NULL;
fout = gbfopen(fname, "wb", MYNAME);
}
-static void alan_wr_deinit(void)
+static void alan_wr_deinit()
{
gbfclose(fout);
fout = NULL;
}
-static void alan_exit(void)
+static void alan_exit()
{
return;
}
NULL,
an1_args,
CET_CHARSET_ASCII, 0 /* CET-REVIEW */
+ , NULL_POS_OPS,
+ nullptr
};
arglist_t arcdist_args[] = {
{
"file", &arcfileopt, "File containing vertices of arc",
- NULL, ARGTYPE_FILE, ARG_NOMINMAX
+ NULL, ARGTYPE_FILE, ARG_NOMINMAX, nullptr
},
{
"rte", &rteopt, "Route(s) are vertices of arc",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
{
"trk", &trkopt, "Track(s) are vertices of arc",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
{
"distance", &distopt, "Maximum distance from arc",
- NULL, ARGTYPE_FLOAT | ARGTYPE_REQUIRED, ARG_NOMINMAX
+ NULL, ARGTYPE_FLOAT | ARGTYPE_REQUIRED, ARG_NOMINMAX, nullptr
},
{
"exclude", &exclopt, "Exclude points close to the arc", NULL,
- ARGTYPE_BOOL, ARG_NOMINMAX
+ ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
{
"points", &ptsopt, "Use distance from vertices not lines",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
{
"project", &projectopt, "Move waypoints to its projection on lines or vertices",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
ARG_TERMINATOR
};
}
static void
-arcdist_arc_disp_hdr_cb(const route_head* rte)
+arcdist_arc_disp_hdr_cb(const route_head*)
{
/* Set arcpt1 to NULL */
arcdist_arc_disp_wpt_cb(NULL);
}
void
-arcdist_process(void)
+arcdist_process()
{
queue* elem, * tmp;
unsigned removed;
}
void
-arcdist_init(const char* args)
+arcdist_init(const char*)
{
char* fm;
}
void
-arcdist_deinit(void)
+arcdist_deinit()
{
/* do nothing */
}
arglist_t bcr_args[] = {
{
"index", &rtenum_opt, "Index of route to write (if more than one in source)",
- NULL, ARGTYPE_INT, "1", NULL
+ NULL, ARGTYPE_INT, "1", NULL, nullptr
},
{
"name", &rtename_opt, "New name for the route",
- NULL, ARGTYPE_STRING, ARG_NOMINMAX
+ NULL, ARGTYPE_STRING, ARG_NOMINMAX, nullptr
},
{
"radius", &radius_opt, "Radius of our big earth (default 6371000 meters)", "6371000",
- ARGTYPE_FLOAT, ARG_NOMINMAX
+ ARGTYPE_FLOAT, ARG_NOMINMAX, nullptr
},
{
"prefer_shortnames", &prefer_shortnames_opt, "Use shortname instead of description",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
ARG_TERMINATOR
};
const char* bcr_name;
const char* mps_name;
const char* symbol_DE;
- int warned;
+ bool warned;
} bcr_icon_mapping_t;
static
bcr_icon_mapping_t bcr_icon_mapping[] = {
- { BCR_DEF_ICON, BCR_DEF_MPS_ICON, BCR_DEF_ICON },
- { "", BCR_DEF_MPS_ICON, "Eigene Adressen" },
- { "AdrMon alpen", "Summit", "Pass-Strassen" },
- { "AdrMon bauern", NULL, "Bauern- und Biohoefe" },
- { "AdrMon cmpngs", "Campground", "Campingplaetzte" },
- { "AdrMon p_aeu", "Scenic Area", "Sehenswertes" },
- { "AdrMon p_beu", "Gas Station", "Tanken" },
- { "AdrMon p_deu", "Parking Area", "Parken" },
- { "AdrMon p_feu", "Restaurant", "Gastro" },
- { "AdrMon p_geu", "Museum", "Freizeit" },
- { "AdrMon p_heu", "Gas Station", "Tankstellen" },
- { "AdrMon p_keu", NULL, "Faehrverbindungen" },
- { "AdrMon p_leu", NULL, "Grenzuebergaenge" },
- { "AdrMon p_teu", NULL, "Wein- und Sektgueter" },
- { "AdrMon RUINEN", "Ghost Town", "Burgen und Schloesser" },
- { "AdrMon NFHAUS", "Residence", "Naturfreundehaeuser" },
- { "AdrMon racing", "Bike Trail", "Rennstrecken" },
- { "AdrMon TNKRST", "Bar", "Tankraststaetten" },
- { "AdrMon tpclub", "Contact, Biker", "Motorrad-Clubs" },
- { "AdrMon tpequ", NULL, "Motorrad-Equipment" },
- { "AdrMon tphot", "Hotel", "Motorrad-Hotels" },
- { "AdrMon tpmh", NULL, "Motorradhaendler" },
- { "AdrMon tpss", "Restricted Area", "Sperrungen" },
- { "AdrMon tpsw", "Scenic Area", "Sehenswertes" },
- { "AdrMon tptref", NULL, "Treffpunkte" },
- { "AdrMon VORTE", "Information", "Ortsinformationen" },
- { "AdrMon WEBCAM", NULL, "WebCam-Standorte" },
- { "AdrMon youthh", NULL, "Jugendherbergen" },
- { "Town", "City (Small)", "Orte" },
- { NULL, NULL, NULL, 0 }
+ { BCR_DEF_ICON, BCR_DEF_MPS_ICON, BCR_DEF_ICON, false },
+ { "", BCR_DEF_MPS_ICON, "Eigene Adressen", false },
+ { "AdrMon alpen", "Summit", "Pass-Strassen", false },
+ { "AdrMon bauern", NULL, "Bauern- und Biohoefe", false },
+ { "AdrMon cmpngs", "Campground", "Campingplaetzte", false },
+ { "AdrMon p_aeu", "Scenic Area", "Sehenswertes", false },
+ { "AdrMon p_beu", "Gas Station", "Tanken", false },
+ { "AdrMon p_deu", "Parking Area", "Parken", false },
+ { "AdrMon p_feu", "Restaurant", "Gastro", false },
+ { "AdrMon p_geu", "Museum", "Freizeit", false },
+ { "AdrMon p_heu", "Gas Station", "Tankstellen", false },
+ { "AdrMon p_keu", NULL, "Faehrverbindungen", false },
+ { "AdrMon p_leu", NULL, "Grenzuebergaenge", false },
+ { "AdrMon p_teu", NULL, "Wein- und Sektgueter", false },
+ { "AdrMon RUINEN", "Ghost Town", "Burgen und Schloesser", false },
+ { "AdrMon NFHAUS", "Residence", "Naturfreundehaeuser", false },
+ { "AdrMon racing", "Bike Trail", "Rennstrecken", false },
+ { "AdrMon TNKRST", "Bar", "Tankraststaetten", false },
+ { "AdrMon tpclub", "Contact, Biker", "Motorrad-Clubs", false },
+ { "AdrMon tpequ", NULL, "Motorrad-Equipment", false },
+ { "AdrMon tphot", "Hotel", "Motorrad-Hotels", false },
+ { "AdrMon tpmh", NULL, "Motorradhaendler", false },
+ { "AdrMon tpss", "Restricted Area", "Sperrungen", false },
+ { "AdrMon tpsw", "Scenic Area", "Sehenswertes", false },
+ { "AdrMon tptref", NULL, "Treffpunkte", false },
+ { "AdrMon VORTE", "Information", "Ortsinformationen", false },
+ { "AdrMon WEBCAM", NULL, "WebCam-Standorte", false },
+ { "AdrMon youthh", NULL, "Jugendherbergen", false },
+ { "Town", "City (Small)", "Orte", false },
+ { NULL, NULL, NULL, false }
};
static void
if (m->symbol_DE == NULL) {
if (! m->warned) {
- m->warned = 1;
+ m->warned = true;
warning(MYNAME ": Unknown icon \"%s\" found. Please report.\n", str);
}
return;
}
static void
-bcr_route_trailer(const route_head* rte)
+bcr_route_trailer(const route_head*)
{
}
static void
-bcr_write_wpt(const Waypoint* wpt)
+bcr_write_wpt(const Waypoint*)
{
}
bcr_data_write,
NULL,
bcr_args,
- CET_CHARSET_MS_ANSI, 0 /* CET-REVIEW */
+ CET_CHARSET_MS_ANSI, 0, /* CET-REVIEW */
+ NULL_POS_OPS,
+ nullptr
};
arglist_t bend_args[] = {
{
"distance", &distopt, "Distance to the bend in meters where the new points will be added",
- "25", ARGTYPE_FLOAT, ARG_NOMINMAX
+ "25", ARGTYPE_FLOAT, ARG_NOMINMAX, nullptr
},
{
"minangle", &minangleopt, "Minimum bend angle in degrees", "5",
- ARGTYPE_FLOAT, ARG_NOMINMAX
+ ARGTYPE_FLOAT, ARG_NOMINMAX, nullptr
},
ARG_TERMINATOR
};
static void
-bend_init(const char* args)
+bend_init(const char*)
{
maxDist = 0.0;
if (distopt) {
}
static void
-bend_process(void)
+bend_process()
{
queue* elem, *tmp;
QUEUE_FOR_EACH(routes_orig, elem, tmp) {
}
static void
-bend_deinit(void)
+bend_deinit()
{
route_flush(routes_orig);
xfree(routes_orig);
}
static void
-bend_exit(void)
+bend_exit()
{
}
NULL,
brauniger_iq_args,
CET_CHARSET_UTF8, 1 /* master process: don't convert anything | CET-REVIEW */
+ , NULL_POS_OPS,
+ nullptr
};
NULL,
compegps_args,
CET_CHARSET_MS_ANSI, 1
+ , NULL_POS_OPS,
+ nullptr
};
#endif /* CSVFMTS_ENABLED */
NULL,
cst_args,
CET_CHARSET_MS_ANSI, 0 /* CET-REVIEW */
+ , NULL_POS_OPS,
+ nullptr
};
NULL,
NULL,
CET_CHARSET_UTF8, 1 /* there is no need to convert anything | CET-REVIEW */
+ , NULL_POS_OPS,
+ nullptr
};
NULL,
destinator_args,
CET_CHARSET_UTF8, 1 /* fixed */
-};
+ , NULL_POS_OPS,
+ nullptr};
ff_vecs_t destinator_itn_vecs = {
ff_type_file,
NULL,
destinator_args,
CET_CHARSET_UTF8, 1 /* fixed */
-};
+ , NULL_POS_OPS,
+ nullptr};
ff_vecs_t destinator_trl_vecs = {
ff_type_file,
NULL,
destinator_args,
CET_CHARSET_UTF8, 1 /* fixed */
-};
+ , NULL_POS_OPS,
+ nullptr };
/**************************************************************************/
arglist_t dg100_args[] = {
{
"erase", &erase, "Erase device data after download",
- "0", ARGTYPE_BOOL, ARG_NOMINMAX
+ "0", ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
{
"erase_only", &erase_only, "Only erase device data, do not download anything",
- "0", ARGTYPE_BOOL, ARG_NOMINMAX
+ "0", ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
ARG_TERMINATOR
};
dg100_args,
CET_CHARSET_ASCII, 0 /* ascii is the expected character set */
/* not fixed, can be changed through command line parameter */
+ , NULL_POS_OPS,
+ nullptr
};
ff_vecs_t dg200_vecs = {
dg100_args,
CET_CHARSET_ASCII, 0 /* ascii is the expected character set */
/* not fixed, can be changed through command line parameter */
+ , NULL_POS_OPS,
+ nullptr
};
/**************************************************************************/
arglist_t fix_args[] = {
{
"hdop", &hdopopt, "Suppress points with higher hdop",
- "-1.0", ARGTYPE_BEGIN_REQ | ARGTYPE_FLOAT, ARG_NOMINMAX
+ "-1.0", ARGTYPE_BEGIN_REQ | ARGTYPE_FLOAT, ARG_NOMINMAX, nullptr
},
{
"vdop", &vdopopt, "Suppress points with higher vdop",
- "-1.0", ARGTYPE_END_REQ | ARGTYPE_FLOAT, ARG_NOMINMAX
+ "-1.0", ARGTYPE_END_REQ | ARGTYPE_FLOAT, ARG_NOMINMAX, nullptr
},
{
"hdopandvdop", &andopt, "Link hdop and vdop supression with AND",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
{
"sat", &satopt, "Minimium sats to keep points",
- "-1.0", ARGTYPE_BEGIN_REQ | ARGTYPE_INT, ARG_NOMINMAX
+ "-1.0", ARGTYPE_BEGIN_REQ | ARGTYPE_INT, ARG_NOMINMAX, nullptr
},
{
"fixnone", &fixnoneopt, "Suppress points without fix",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
{
"fixunknown", &fixunknownopt, "Suppress points with unknown fix",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
{
"elemin", &eleminopt, "Suppress points below given elevation in meters",
- NULL, ARGTYPE_BEGIN_REQ | ARGTYPE_INT, ARG_NOMINMAX
+ NULL, ARGTYPE_BEGIN_REQ | ARGTYPE_INT, ARG_NOMINMAX, nullptr
},
{
"elemax", &elemaxopt, "Suppress points above given elevation in meters",
- NULL, ARGTYPE_BEGIN_REQ | ARGTYPE_INT, ARG_NOMINMAX
+ NULL, ARGTYPE_BEGIN_REQ | ARGTYPE_INT, ARG_NOMINMAX, nullptr
},
{
"matchname", &nameopt,
}
static void
-fix_process(void)
+fix_process()
{
// Filter waypoints.
what = wptdata;
}
static void
-fix_init(const char* args)
+fix_init(const char*)
{
if (hdopopt) {
hdopf = atof(hdopopt);
}
static void
-tlog3a_xgcb_length(xg_string args, const QXmlStreamAttributes*)
+tlog3a_xgcb_length(xg_string, const QXmlStreamAttributes*)
{
}
static void
-tlog3b_xgcb_wptst(xg_string args, const QXmlStreamAttributes*)
+tlog3b_xgcb_wptst(xg_string, const QXmlStreamAttributes*)
{
xmlwpt = new Waypoint;
xmldatum = DATUM_WGS84;
static void
-tlog3b_xgcb_tptst(xg_string args, const QXmlStreamAttributes*)
+tlog3b_xgcb_tptst(xg_string, const QXmlStreamAttributes*)
{
xmlwpt = new Waypoint;
xmldatum = DATUM_WGS84;
static void
-tlog3b_xgcb_tpten(xg_string args, const QXmlStreamAttributes*)
+tlog3b_xgcb_tpten(xg_string, const QXmlStreamAttributes*)
{
finalize_pt(xmlwpt);
static void
-tlog3b_xgcb_wpten(xg_string args, const QXmlStreamAttributes*)
+tlog3b_xgcb_wpten(xg_string, const QXmlStreamAttributes*)
{
finalize_pt(xmlwpt);
waypt_add(xmlwpt);
}
static void
-track_tlr_cb(const route_head* trk)
+track_tlr_cb(const route_head*)
{
}
NULL,
dmtlog_args,
CET_CHARSET_ASCII, 0
+ , NULL_POS_OPS,
+ nullptr
};
arglist_t dup_args[] = {
{
"shortname", &snopt, "Suppress duplicate waypoints based on name",
- NULL, ARGTYPE_BEGIN_REQ | ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BEGIN_REQ | ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
{
"location", &lcopt, "Suppress duplicate waypoint based on coords",
- NULL, ARGTYPE_END_REQ | ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_END_REQ | ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
{
"all", &purge_duplicates, "Suppress all instances of duplicates",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
{
"correct", &correct_coords, "Use coords from duplicate points",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
ARG_TERMINATOR
};
NULL,
easygps_args,
CET_CHARSET_ASCII, 0 /* CET REVIEW */
+ , NULL_POS_OPS,
+ nullptr
};
static uint8_t writer_gps_tag_version[4] = {2, 0, 0, 0};
arglist_t exif_args[] = {
- { "filename", &opt_filename, "Set waypoint name to source filename", "Y", ARGTYPE_BOOL, ARG_NOMINMAX },
- { "frame", &opt_frame, "Time-frame (in seconds)", "10", ARGTYPE_INT, "0", NULL },
- { "name", &opt_name, "Locate waypoint for tagging by this name", NULL, ARGTYPE_STRING, ARG_NOMINMAX },
- { "overwrite", &opt_overwrite, "!OVERWRITE! the original file. Default=N", "N", ARGTYPE_BOOL, ARG_NOMINMAX },
+ { "filename", &opt_filename, "Set waypoint name to source filename", "Y", ARGTYPE_BOOL, ARG_NOMINMAX, nullptr },
+ { "frame", &opt_frame, "Time-frame (in seconds)", "10", ARGTYPE_INT, "0", NULL, nullptr },
+ { "name", &opt_name, "Locate waypoint for tagging by this name", NULL, ARGTYPE_STRING, ARG_NOMINMAX, nullptr },
+ { "overwrite", &opt_overwrite, "!OVERWRITE! the original file. Default=N", "N", ARGTYPE_BOOL, ARG_NOMINMAX, nullptr },
ARG_TERMINATOR
};
}
static void
-filter_skeleton_process(void) /* this procedure must be present in vecs */
+filter_skeleton_process() /* this procedure must be present in vecs */
{
// Here is how you register callbacks for all waypoints, routes, tracks.
// waypt_disp_all(waypt)
}
static void
-filter_skeleton_deinit(void)
+filter_skeleton_deinit()
{
/* called after filter processing */
}
static void
-filter_skeleton_exit(void)
+filter_skeleton_exit()
{
/* called on program exit */
}
static void
-format_skeleton_rd_deinit(void)
+format_skeleton_rd_deinit()
{
// gbfclose(fin);
}
static void
-format_skeleton_read(void)
+format_skeleton_read()
{
// your special code to extract waypoint, route and track
// information from gbfile "fin"
}
static void
-format_skeleton_wr_deinit(void)
+format_skeleton_wr_deinit()
{
// gbfclose(fout);
}
static void
-format_skeleton_write(void)
+format_skeleton_write()
{
// Here is how you register callbacks for all waypoints, routes, tracks.
// waypt_disp_all(waypt)
format_skeleton_write,
format_skeleton_exit,
format_skeleton_args,
- CET_CHARSET_ASCII, 0 /* ascii is the expected character set */
+ CET_CHARSET_ASCII, 0, /* ascii is the expected character set */
/* not fixed, can be changed through command line parameter */
+ NULL_POS_OPS, // Unless you do realtime positioning
+ nullptr // name. Not used by modules.
+
};
/**************************************************************************/